package com.eportal.ORM;

/**
 * CodeViewId entity. @author MyEclipse Persistence Tools
 */

public class CodeViewId implements java.io.Serializable {

	// Fields

	private Integer id;
	private String codeid;
	private String codename;
	private Integer bankid;
	private String bankName;

	// Constructors

	/** default constructor */
	public CodeViewId() {
	}

	/** full constructor */
	public CodeViewId(Integer id, String codeid, String codename,
			Integer bankid, String bankName) {
		this.id = id;
		this.codeid = codeid;
		this.codename = codename;
		this.bankid = bankid;
		this.bankName = bankName;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCodeid() {
		return this.codeid;
	}

	public void setCodeid(String codeid) {
		this.codeid = codeid;
	}

	public String getCodename() {
		return this.codename;
	}

	public void setCodename(String codename) {
		this.codename = codename;
	}

	public Integer getBankid() {
		return this.bankid;
	}

	public void setBankid(Integer bankid) {
		this.bankid = bankid;
	}

	public String getBankName() {
		return this.bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof CodeViewId))
			return false;
		CodeViewId castOther = (CodeViewId) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getCodeid() == castOther.getCodeid()) || (this
						.getCodeid() != null
						&& castOther.getCodeid() != null && this.getCodeid()
						.equals(castOther.getCodeid())))
				&& ((this.getCodename() == castOther.getCodename()) || (this
						.getCodename() != null
						&& castOther.getCodename() != null && this
						.getCodename().equals(castOther.getCodename())))
				&& ((this.getBankid() == castOther.getBankid()) || (this
						.getBankid() != null
						&& castOther.getBankid() != null && this.getBankid()
						.equals(castOther.getBankid())))
				&& ((this.getBankName() == castOther.getBankName()) || (this
						.getBankName() != null
						&& castOther.getBankName() != null && this
						.getBankName().equals(castOther.getBankName())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37 * result
				+ (getCodeid() == null ? 0 : this.getCodeid().hashCode());
		result = 37 * result
				+ (getCodename() == null ? 0 : this.getCodename().hashCode());
		result = 37 * result
				+ (getBankid() == null ? 0 : this.getBankid().hashCode());
		result = 37 * result
				+ (getBankName() == null ? 0 : this.getBankName().hashCode());
		return result;
	}

}